package server

import (
	"github.com/go-kratos/kratos/v2/middleware/recovery"
	"github.com/go-kratos/kratos/v2/transport/grpc"
	"kratos-layout/internal/conf"
	"kratos-layout/middleware/logging"
)

func GrpcServerOptions(c *conf.Server) []grpc.ServerOption {
	opts := []grpc.ServerOption{
		grpc.Middleware(
			logging.Server(),
			recovery.Recovery(),
		),
	}
	return opts
}
